package io;

import java.io.File;

public class File3 {

    public static void main(String[] args) {

        File file = new File("./testDir");
        file.mkdir();

        File scrFile = new File("a.txt");
        File destFile = new File("b.txt");
        scrFile.renameTo(destFile);

    }

}
